﻿/*
 * create by 重典
 */
using System;
namespace Infancy.Core.Entities {
	/// <summary>
	/// 站内信功能
	/// </summary>
	public class Message : EntityBase<Message> {
		/// <summary>
		/// 信件标识
		/// </summary>
		public long ID { get; set; }
		/// <summary>
		/// 发件人iD
		/// </summary>
		public long FromID { get; set; }
		/// <summary>
		/// 收件人
		/// </summary>
		public long ToID { get; set; }
		/// <summary>
		/// 标题
		/// </summary>
		public string Title { get; set; }
		/// <summary>
		/// 内容
		/// </summary>
		public string Body { get; set; }
		/// <summary>
		/// 发送时间
		/// </summary>
		public DateTime SendTime { get; set; }
		/// <summary>
		/// 是否已读
		/// </summary>
		public bool IsSee { get; set; }
		/// <summary>
		/// 发件人在发件箱内删除
		/// </summary>
		public bool IsFromDel { get; set; }
		/// <summary>
		/// 收件人在收件箱内删除
		/// </summary>
		public bool IsToDel { get; set; }
		/// <summary>
		/// 是否为Html格式，如系统信
		/// </summary>
		public bool IsHtml { get; set; }
		/// <summary>
		/// 发件人
		/// </summary>
		public Profile Fromer { get; set; }
		/// <summary>
		/// 收件人
		/// </summary>
		public Profile Toer { get; set; }
	}
}
